package com.czh.rdm.chat_2


fun main() {
    testColor(Color.RED)
}

fun testColor(color: Color) {
    val s = when (color) {
        Color.RED, Color.BLUE -> "first"
        Color.GREEN, Color.YELLOW -> "second"
    }
    println(s)
}

enum class Color {
    RED, BLUE, GREEN, YELLOW
}